package com.ruoyi.web.controller.interfaceConfig.sceneConfig;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.interfaceConfig.sceneConfig.domain.FieldMapping;
import com.ruoyi.interfaceConfig.sceneConfig.domain.dto.FieldMappingDTO;
import com.ruoyi.interfaceConfig.sceneConfig.service.IFieldMappingService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author YiYuan
 * @description
 * @date 2024/2/28
 */
@RestController
@RequestMapping("/interfaceConfig/fieldMapping")
@RequiredArgsConstructor
public class FieldMappingController extends BaseController {
    private final IFieldMappingService fieldMappingService;

    @PostMapping("/save")
    public AjaxResult save(@RequestBody FieldMappingDTO fieldMappingDTO) {
        return success(fieldMappingService.saveFieldMapping(fieldMappingDTO));
    }
}
